from Common.connect_to_device import *
# 筛选页元素
class Arc_Base_old_Locator:
    all_back=f'(resourceId="{package_name}:id/img_back")'
    # ****************首页元素main******************
    # 首页爱奇艺logo
    main_logo = f'(resourceId="{package_name}:id/img_logo")'
    # 首页频道栏
    main_tab_loc = f'(resourceId="{package_name}:id/tab_layout")'
    # 首页进入搜索页面按钮
    main_enter_search_Loc = f'(resourceId="{package_name}:id/text_search")'
    # 首页进入历史页面按钮
    main_enter_history_Loc = f'(resourceId="{package_name}:id/ic_history")'
    # 首页进入个人中心页面按钮
    main_enter_mine_Loc = f'(resourceId="{package_name}:id/ic_mine")'
    # 风云榜按钮
    main_fengyun_loc = f'(resourceId="{package_name}:id/tv_channel_title")'
    # 置顶按钮
    main_top_loc = f'(resourceId="{package_name}:id/float_Button")'
    main_top_point_loc = None
    # 风云榜页面返回按钮
    main_fengyun_back = all_back
    # 筛选页页面返回按钮
    main_shaixuan_back = all_back
    #######################个人中心页面 mine###############################
    mine_history_loc = f'(resourceId="{package_name}:id/tv_history")'
    mine_collect_loc = f'(resourceId="{package_name}:id/ly_collect")'
    mine_setting_loc = f'(resourceId="{package_name}:id/ly_set")'
    mine_back_loc = all_back
    mine_history_back_loc = mine_back_loc
    mine_collect_back_loc = mine_back_loc
    mine_setting_back_loc = mine_back_loc
    # ****************历史记录元素 history******************
    # 历史记录 页面返回
    history_back_loc = all_back
    # ****************搜索页面元素search******************
    #搜索页面的输入框
    search_edit_search_loc = f'(resourceId="{package_name}:id/edit_search")'
    # 搜索页搜索
    search_tv_search_loc = f'(resourceId="{package_name}:id/tv_search")'
    # 精确搜索结果，立即播放
    search_playNo1 = f'(resourceId="{package_name}:id/item_text_episode",text="1")'
    # 搜索页面返回
    search_back_loc = f'(resourceId="{package_name}:id/img_back")'
    # ****************播放页元素play******************
    # 播放页左上角返回
    play_back_loc = all_back
    # 播放页seekbar
    play_seekbar_loc = f'(resourceId="{package_name}:id/seekBar_narrow")'
    # 音频模式加载页面
    audio_loading_loc = main_logo
    # 音频模式按钮
    audio_mode_loc = f'(resourceId="{package_name}:id/iv_audio_mode")'
    # 选集
    tv_anthology_loc = f'(resourceId="{package_name}:id/text_list_narrow")'
    # 倍速
    tv_speed_loc = f'(resourceId="{package_name}:id/text_speed_narrow")'
    # 分辨率
    tv_bit_rate_loc = f'(resourceId="{package_name}:id/text_rate_narrow")'
    # 视频模式
    tv_change_video_loc = f'(resourceId="{package_name}:id/tv_change_video")'
    tv_loading_loc= f'(text="精彩即将开始")'
    # 一键回到首页_adb命令
    cmd_enter_to_mainpage1 = f'am start -n {package_name}/com.arcvideo.car.home.activity.MainActivity'





if __name__ == '__main__':
    pass